<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
      div {
        width: 200px;
        height: 200px;
        background-color: pink;
        transition: all 2s;
      }
      div:hover {
        transform: translate(100px, 100px);
      }
      p {
          position: absolute;
          top: 50%;
          left: 50%;
          width: 300px;
          height: 300px;
          background-color: red;
          transform: translate(-50%,-50%);
      }
      .box {
          width: 200px;
          height: 200px;
          background-color: purple;
          margin: 200px auto;
      }
      .box:hover {
          transform: rotate(360deg);
      }
    </style>
  </head>
  <body>
    <div></div>
    <p></p>
    <div class="box"></div>
  </body>
</html>
